# 生成proto
#protoc -I .  --go_out ./ --go_opt paths=source_relative  --go-grpc_out ./ --go-grpc_opt paths=source_relative   your_service.proto
#protoc -I .  --go_out ./gen/go --go_opt paths=source_relative  --go-grpc_out ./ --go-grpc_opt paths=source_relative   your/service/v1/your_service.proto
#protoc -I . --grpc-gateway_out ./gen/go  --grpc-gateway_opt logtostderr=true  --grpc-gateway_opt paths=source_relative  --grpc-gateway_opt generate_unbound_methods=true  your/service/v1/your_service.proto
#protoc -I . --grpc-gateway_out ./gen/go --grpc-gateway_opt logtostderr=true  --grpc-gateway_opt paths=source_relative  your/service/v1/your_service.proto

# 生成proto 和 grpc
protoc -I .  --go_out ./gen/go --go_opt paths=source_relative  --go-grpc_out require_unimplemented_servers=false:./gen/go --go-grpc_opt paths=source_relative   your/service/v1/your_service.proto
# 生成gw
protoc -I . --grpc-gateway_out ./gen/go   --grpc-gateway_opt logtostderr=true  --grpc-gateway_opt paths=source_relative  --grpc-gateway_opt grpc_api_configuration=buf.gen.yaml  --grpc-gateway_opt standalone=true   your/service/v1/your_service.proto